<template>
  <div class="fullbtn-root" :class="{close: zoomin}"
    @click="$emit(zoomin ? 'zoomout' : 'zoomin')">
  </div>
</template>

<script>
export default {
  name: 'fullbtn',
  props: ['to', 'zoomin']
}
</script>

<style scoped lang="stylus">
.fullbtn-root
  width 20px
  height 20px
  background-repeat no-repeat
  background-position center
  background-image url(img/full.png)
  cursor pointer
  &.close
    background-image url(img/defull.png)
</style>